package cn.dengta.webapp.trade.form;

import cn.dengta.common.validator.*;
import cn.dengta.context.model.WesKit;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ReissueCoinForm implements Form {

	/** 本地订单号 */
	@Check("交易号")
	@Trim
	@NotEmpty
	private String orderNo;
	/** 补发金币数 */
	@Check("金币数")
	@Range(min = 0)
	private Integer coin;
	/** 购买凭证截图 */
	@Check("购买凭证截图")
	@Trim
	@NotEmpty
	private String buyVoucher;
	/** 账单凭证截图 */
	@Check("账单凭证截图")
	@Trim
	@NotEmpty
	private String billVoucher;

	/** 订单号 */
	@Check(value = "订单号", required = false)
	@Trim
	@NotEmpty
	private String thirdOrderId;

	/** 订单归属分包 */
	@Check(value = "订单归属分包", required = false)
	private WesKit wesKit;

	public void setWesKit(Integer wesKit) {
		this.wesKit = WesKit.of(wesKit);
	}

}
